package 面向对象作业;

public class Book {
    private   int  id;
    private  String   name;
    private   String  Writer;
    private   double  price;
    private   String   chuBanShe;
    private   String   chuBanRiQi;

    public Book(int id, String name, String writer, double price, String chuBanShe, String chuBanRiQi) {
        this.id = id;
        this.name = name;
        Writer = writer;
        this.price = price;
        this.chuBanShe = chuBanShe;
        this.chuBanRiQi = chuBanRiQi;
    }

    public Book() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWriter() {
        return Writer;
    }

    public void setWriter(String writer) {
        Writer = writer;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getChuBanShe() {
        return chuBanShe;
    }

    public void setChuBanShe(String chuBanShe) {
        this.chuBanShe = chuBanShe;
    }

    public String getChuBanRiQi() {
        return chuBanRiQi;
    }

    public void setChuBanRiQi(String chuBanRiQi) {
        this.chuBanRiQi = chuBanRiQi;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", Writer='" + Writer + '\'' +
                ", price=" + price +
                '}';
    }
    public void    bianHuaPrice(double  prices){
        price=price-prices;
       // return   price;
    }
}
